package edu.ynu.se.xiecheng.achitectureclass.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "camera_image")
@EqualsAndHashCode(callSuper = true)
public class CameraImage extends LogicEntity {
    @Column(nullable = false)
    private String deviceSerial;  // 设备序列号

    @Column(nullable = false)
    private String imageUrl;      // OSS中的图片URL

    @Column(nullable = false)
    private Date captureTime;     // 抓拍时间
} 